package com.boe.csb.core.dao;

import com.boe.csb.core.entity.po.BoeUserSearch;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface BoeUserSearchMapper {
    long countByExample(BoeUserSearchCriteria example);

    int deleteByExample(BoeUserSearchCriteria example);

    int deleteByPrimaryKey(Integer id);

    int insert(BoeUserSearch record);

    int insertSelective(BoeUserSearch record);

    List<BoeUserSearch> selectByExampleWithRowbounds(BoeUserSearchCriteria example, RowBounds rowBounds);

    List<BoeUserSearch> selectByExample(BoeUserSearchCriteria example);

    BoeUserSearch selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BoeUserSearch record, @Param("example") BoeUserSearchCriteria example);

    int updateByExample(@Param("record") BoeUserSearch record, @Param("example") BoeUserSearchCriteria example);

    int updateByPrimaryKeySelective(BoeUserSearch record);

    int updateByPrimaryKey(BoeUserSearch record);
    
    List<String> queryUserLatelySearch(@Param("userId") Long userId);
    
    int deleteUserOldRow(@Param("userId") Long userId);
}